package groups;

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@taglib uri="http://www.icesoft.com/icefaces/component" prefix="ice" %>
<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>Groups Detail</title>
            <link rel="stylesheet" type="text/css" href="/WebIDE-war/faces/jsfcrud.css" />
        </head>
        <body>
            <ice:panelGroup id="messagePanel" layout="block">
                <ice:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </ice:panelGroup>
            <h1>Groups Detail</h1>
            <ice:form>
                <ice:panelGrid columns="2">
                    <ice:outputText value="GroupName:"/>
                    <ice:outputText value="#{groups.groups.groupName}" title="GroupName" />
                    <ice:outputText value="UsersCollection:" />
                    <ice:panelGroup>
                        <ice:outputText rendered="#{empty groups.groups.usersCollection}" value="(No Items)"/>
                        <ice:dataTable value="#{groups.groups.usersCollection}" var="item"
                                     border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px" 
                                     rendered="#{not empty groups.groups.usersCollection}">
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="UserName"/>
                                </f:facet>
                                <ice:outputText value=" #{item.userName}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="Password"/>
                                </f:facet>
                                <ice:outputText value=" #{item.password}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText escape="false" value="&nbsp;"/>
                                </f:facet>
                                <ice:commandLink value="Show" action="#{users.detailSetup}">
                                    <f:param name="jsfcrud.currentGroups" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][groups.groups][groups.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentUsers" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][users.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="groups" />
                                    <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.GroupsController" />
                                </ice:commandLink>
                                <ice:outputText value=" "/>
                                <ice:commandLink value="Edit" action="#{users.editSetup}">
                                    <f:param name="jsfcrud.currentGroups" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][groups.groups][groups.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentUsers" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][users.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="groups" />
                                    <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.GroupsController" />
                                </ice:commandLink>
                                <ice:outputText value=" "/>
                                <ice:commandLink value="Destroy" action="#{users.destroy}">
                                    <f:param name="jsfcrud.currentGroups" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][groups.groups][groups.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentUsers" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][users.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="groups" />
                                    <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.GroupsController" />
                                </ice:commandLink>
                            </ice:column>
                        </ice:dataTable>
                    </ice:panelGroup>
                    <ice:outputText value="GroupsResourcesCollection:" />
                    <ice:panelGroup>
                        <ice:outputText rendered="#{empty groups.groups.groupsResourcesCollection}" value="(No Items)"/>
                        <ice:dataTable value="#{groups.groups.groupsResourcesCollection}" var="item"
                                     border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px" 
                                     rendered="#{not empty groups.groups.groupsResourcesCollection}">
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="C"/>
                                </f:facet>
                                <ice:outputText value=" #{item.c}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="R"/>
                                </f:facet>
                                <ice:outputText value=" #{item.r}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="U"/>
                                </f:facet>
                                <ice:outputText value=" #{item.u}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="D"/>
                                </f:facet>
                                <ice:outputText value=" #{item.d}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="Groups"/>
                                </f:facet>
                                <ice:outputText value=" #{item.groups}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText value="Resources"/>
                                </f:facet>
                                <ice:outputText value=" #{item.resources}"/>
                            </ice:column>
                            <ice:column>
                                <f:facet name="header">
                                    <ice:outputText escape="false" value="&nbsp;"/>
                                </f:facet>
                                <ice:commandLink value="Show" action="#{groupsResources.detailSetup}">
                                    <f:param name="jsfcrud.currentGroups" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][groups.groups][groups.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentGroupsResources" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][groupsResources.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="groups" />
                                    <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.GroupsController" />
                                </ice:commandLink>
                                <ice:outputText value=" "/>
                                <ice:commandLink value="Edit" action="#{groupsResources.editSetup}">
                                    <f:param name="jsfcrud.currentGroups" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][groups.groups][groups.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentGroupsResources" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][groupsResources.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="groups" />
                                    <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.GroupsController" />
                                </ice:commandLink>
                                <ice:outputText value=" "/>
                                <ice:commandLink value="Destroy" action="#{groupsResources.destroy}">
                                    <f:param name="jsfcrud.currentGroups" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][groups.groups][groups.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.currentGroupsResources" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][groupsResources.converter].jsfcrud_invoke}"/>
                                    <f:param name="jsfcrud.relatedController" value="groups" />
                                    <f:param name="jsfcrud.relatedControllerType" value="webidewar.jsf.GroupsController" />
                                </ice:commandLink>
                            </ice:column>
                        </ice:dataTable>
                    </ice:panelGroup>
                </ice:panelGrid>
                <br />
                <ice:commandLink action="#{groups.destroy}" value="Destroy">
                    <f:param name="jsfcrud.currentGroups" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][groups.groups][groups.converter].jsfcrud_invoke}" />
                </ice:commandLink>
                <br />
                <br />
                <ice:commandLink action="#{groups.editSetup}" value="Edit">
                    <f:param name="jsfcrud.currentGroups" value="#{jsfcrud_class['webidewar.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][groups.groups][groups.converter].jsfcrud_invoke}" />
                </ice:commandLink>
                <br />
                <ice:commandLink action="#{groups.createSetup}" value="New Groups" />
                <br />
                <ice:commandLink action="#{groups.listSetup}" value="Show All Groups Items"/>
                <br />
                <ice:commandLink value="Index" action="welcome" immediate="true" />
            </ice:form>
        </body>
    </html>
</f:view>
